package com.woniu.sharepark.platformsystem.dao;

import com.woniu.sharepark.platformsystem.pojo.Scale;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author zy
 * @date 2019/6/5 19:52
 */
public interface ScaleDAO {

    @Select("select * from scale")
    List<Scale> queryScale();

    @Update("update scale set s_rent=#{sRent}, s_community=#{sCommunity}, s_system=#{sSystem} where s_id=1")
    int updateScale(Scale scale);

    @Select("select * from scale")
    Scale findScale();
}
